/**
 * 
 */
package org.apache.lucene.queryParser;

import org.apache.lucene.search.Query;

/**
 * 查询分析器工具类
 * 
 * @author 何小锋
 * 
 */
public class QueryUtil {

	/**
	 * 获取字段查询
	 * 
	 * @param parser
	 * @param field
	 * @param queryText
	 * @param quoted
	 * @return
	 * @throws ParseException
	 */
	public static Query getFieldQuery(QueryParser parser, String field,
			String queryText, boolean quoted) throws ParseException {
		return parser.getFieldQuery(field, queryText, quoted);
	}
}
